
BankAccount = {};

BankAccount.balance = 5000;

//returns true if you can widthdraw
function BankAccount:Widthdraw(amount)
	if (amount > self.balance) then
		self.balance = self.balance - amount;
		return true;
	else 
		return false;
	end
end

function BankAccount:Deposit(amount)
	self.balance = self.balance + amount;
end

function BankAccount:GetBalance()
	return self.balance;
end;
